package library.persistence.dao;

import library.domain.User;

import java.util.List;

public interface UserDao {

    List<User> getAllUser();

    User getUserByUsernameAndPassword(String username, String password);

    User getUserByID(int id);

    User getUserByUsername(String username);

    void updateUserByID(User user);

    void deleteUserByID(int id);

    void deleteUserByUsername(String username);

    boolean insertUser(User user);

    List<User> searchUserList(String keyword);

}
